#ifndef DICT_H
#define DICT_H

typedef char *Word;
typedef char *Def;
typedef struct sdict * dict;

dict
dict_empty ();

void
dict_add (dict d, Word w, Def f);

bool
dict_exists (dict d, Word w);

Def
dict_search (dict d, Word w);

void
dict_del (dict d, Word w);

void
dict_pprint (dict d);

int
dict_length (dict d);

dict
dict_destroy (dict d);

int
word_maxlen(void);

#endif
